package com.swt.gap.service.impl;

import com.swt.gap.dao.ModelClassMapper;
import com.swt.gap.model.entity.ModelClass;
import com.swt.gap.service.ModelClassService;
import org.springframework.stereotype.Service;

@Service
public class ModelClassServiceImpl implements ModelClassService {


    private final ModelClassMapper modelClassMapper;

    public ModelClassServiceImpl(ModelClassMapper modelClassMapper) {
        this.modelClassMapper = modelClassMapper;
    }

    @Override
    public Integer saveModelClass(ModelClass record) {
        return modelClassMapper.insertSelective(record);
    }

    @Override
    public Integer updateModelClass(ModelClass record) {
        return modelClassMapper.updateByPrimaryKeySelective(record);
    }
}
